Integrate the Sequence Wallet, fetch your players assets, sign messages, send transactions and more using Sequence’s Unreal SDK.
SequencePlugin
folder into your Unreal project’s Plugin
folder.
Alternatively, get the SDK from the Epic Games Marketplace.
SequenceConfig.ini
file, add your WaaS Config Key
and your Builder API Key from the Builder Console under Settings > API Access Keys
.
Onboard > Embedded Wallet > Configuration
.
Sequence Connector
Actor which will initiate and display the Login Panel.
We recommend using the Built-In UI for development purposes, here’s a more detailed explanation.
For further customization, learn how to create your own UI.
Auth Success
event on Event Graph > Begin Play, and we will call Api Update Network Id
from the SequenceWalletBP Subsystem to set the wallet to your builders project selected chain.
In the same event, we will also call Set Chain
from the Sequence Indexer Subsystem so we can correctly fetch the assets.
Api GetWallet Address
from the SequenceWalletBP Subsystem. We will display the user address on UI_Layer_Menu.
Web3 Game Item
.
Once we’ve made our items we will now create their respective sale contracts by deploying a new contract and selecting Web 3 Game Item(Sale)
.
We will add to our Web 3 Game items its corresponding rewards and it’s Sale contract address as a property.
CUI_Purchase
blueprint.
PrimaryPurchase
transaction the desired Web 3 Game Item(Sale)
and will use the contracts “Sale” property to reference our Web 3 Game Item(Sale)
. You will find this in the CUI_PurchaseItem
blueprint.
Get Token Balances
, which will return us all the contract Balances for the given wallet address. Once returned, we will call Get Token Balances once again, but this time for each specific contract, which will return us the balance plus the information and metadata for the given contract. You will find this in the CUI_Vault
blueprint.
Burn
transaction of the desired Web 3 Game Item
which will return us the transaction status and the contract address, to verify the success of the items burn. On Succes, we will use the contracts properties to give the players their reward. You will find this in the CUI_VaultItem
blueprint.
For a more detailed explanation go to Read From Blockchain and Write to Blockchain sections.